package com.city.statisticsservice;

import org.mybatis.spring.annotation.MapperScan;
import org.springframework.boot.SpringApplication;
import org.springframework.boot.autoconfigure.SpringBootApplication;
import org.springframework.cloud.client.discovery.EnableDiscoveryClient;
import org.springframework.cloud.openfeign.EnableFeignClients;
import org.springframework.context.annotation.ComponentScan;
import org.springframework.scheduling.annotation.EnableScheduling;

/**
 * Created with IntelliJ IDEA.
 * User: Cheng
 * Date: 2020/10/10
 * Time: 21:59
 * Description: No Description
 *
 * 统计模块
 * 通过cloud feign nacos调用别的要统计的模块进行数据的集中统计
 */
@SpringBootApplication
@ComponentScan(basePackages = {"com.city"})
@EnableDiscoveryClient
@EnableFeignClients
@MapperScan("com.city.statisticsservice.mapper")
@EnableScheduling //开启定时任务
public class StatisticsApplication {
    public static void main(String[] args) {
        SpringApplication.run(StatisticsApplication.class,args);
    }
}